package com.xx.questionnaire.util.log;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;


public final class LogInit {
	static Logger log = Logger.getLogger(LogInit.class);
	final static String LOG_FILE_NAME = "dbcp-mysql.properties"; 
	static{
		PropertyConfigurator.configure(ClassLoader.getSystemResource("").toString().substring(6)+"/"+LOG_FILE_NAME);
	}
	public static void main(String[] args) {
		log.info("日志记录可以使用了。");
		System.out.println();
	}

}
